import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import "bootstrap-vue/dist/bootstrap-vue.js";
import "bootstrap/dist/css/bootstrap.css";
import "bootstrap-vue/dist/bootstrap-vue.css";
import { BootstrapVue } from "bootstrap-vue";
import axios from 'axios'

window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'
axios.defaults.baseURL = (process.env.API_PATH !== 'production') ? 'http://localhost:8000/api/v1' : 'http://10.0.0.185/api/v1';
Vue.prototype.$http = window.axios

Vue.config.productionTip = false;

Vue.use(BootstrapVue, axios);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
